<template>
	<view class="" :style="{'overflow':isShowPopup?'hidden':'visible'}">
		<mescroll-body height="500px" :sticky="true" :down="down" :up="up" @init="mescrollInit" @down="downCallback" @up="upCallback">
			<view class="">
				<view class="sticky-tabs">
					<uni-nav-bar left-icon="left" :statusBar="true" color="#EF5233" textcolor="#08090A" :backgroundColor="bgcolor"
						title="服务人员" @clickLeft="back">
						<block slot="right">
							<view class="right-info" @click="screen">
								<image class="right-icon" src="../../static/search/shaixuan.png" mode=""></image>
								<view>筛选</view>
							</view>
						</block>
					</uni-nav-bar>
					<view class="time-content">
						<view class="days-list">
							<view :class="day == item.day?'every-day every-day-select':'every-day' "
								@click="chooseDay(item)" v-for="(item,index) in datsList" :key="index">
								<view class="week">{{item.week}}</view>
								<view class="date">{{item.time}}</view>
								<!-- <image class="xia-icon" v-if="day == item.day"
									src="https://qiniu-cdn.maeiyun.com/imgs/massage/xia.png" mode=""></image> -->
							</view>
						</view>
					</view>
					
					<view :class="iszhan?'time-list expanded':'time-list'">
						<view :class="iszhan?'out-time-list expanded':'out-time-list'">
							<view :class="iszhan?'time-inner-content expanded':'time-inner-content'">
								<view :class="item.status?time == item.time?'time time-select':'time':'time time-nochoose'"  @click="item.status?chooseTime(item):''"
									v-for="(item,index) in timeList" :key="index">
									{{item.time}}
									<view v-if="item.is_night" class="night-text">夜间</view>
								</view>
							</view>
							<view class="shou-icon" @click.stop="iszhan = !iszhan">
								<uni-icons v-if="iszhan" color="#959595" type="up" size="18"></uni-icons>
								<uni-icons v-else color="#959595" type="down" size="18"></uni-icons>
							</view>
						</view>
						
					</view>
				</view>
				
				<view class="">
					
					<view style="position: relative;z-index: 1000;">
						<shaixuanPopup ref="shaixuanPopup" @massageResult="massageResult"></shaixuanPopup>
					</view>
			</view>
			
				<view class="technician-list">
					<view @click="chooseTechnician(item)"
						:class="current == item.id?'every-technician-info selectstyle':'every-technician-info'"
						v-for="(item,index) in massageList" :key="index">
						<view class="left-show">
							<view class="technician-img">
								<image class="header-img" :src="item.work_clothes_image" mode="aspectFill"></image>
								<image class="fangda-icon" src="../../static/jishi/big.png" @click.stop="showPopup(item,index)"  mode=""></image>
							</view>
						</view>
						<view class="right-show">
							<view class="fixed-loc">
								<image src="../../static/jishi/loc.png" mode=""></image>
								<view>{{(item.juli / 1000).toFixed(2)}}km</view>
							</view>
							<view class="username">{{item.technician_nickname || item.real_name}} <text>{{item.age}}</text></view>
							<view class="start-nums">
								<view class="pingjia-nums">
									<text>评论{{item.opinion}}</text>
									<text>好评{{((item.high_opinion/item.opinion || 0)*100).toFixed(0)}}%</text>
								</view>
								<view class="shop-lines" style="display: flex;align-items: baseline;margin-left: auto;">
									<uni-icons custom-prefix="iconfont" type="icon-dianpu1" color="#888889" size="12"></uni-icons>
									<view style="margin-left: 8rpx;">{{item.store_name}}</view>
								</view>
							</view>
							
							<view class="technician-datum-list">
								<view class="item-datum">
									<view class="titles">籍贯</view>
									<view class="desc">{{item.city}}</view>
								</view>
								<view class="item-datum">
									<view class="titles">星座</view>
									<view class="desc">{{item.constellation}}</view>
								</view>
								<view class="item-datum">
									<view class="titles">性别</view>
									<view class="desc">{{item.gender == 1?'男':'女'}}</view>
								</view>
								<view class="item-datum">
									<view class="titles">民族</view>
									<view class="desc">{{item.nation}}</view>
								</view>
								<view class="item-datum">
									<view class="titles">手法</view>
									<view class="desc">{{item.star}}星</view>
								</view>
								<view class="item-datum">
									<view class="titles">身高</view>
									<view class="desc">{{item.height}}cm</view>
								</view>
								<view class="item-datum">
									<view class="titles">体重</view>
									<view class="desc">{{item.weight}}kg</view>
								</view>
								<view class="item-datum">
									<view class="titles">工龄</view>
									<view class="desc">{{item.experience}}年</view>
								</view>
							</view>
						</view>
						<image v-if="item.is_data == 2" click="right-fixed-img" style="width: 58rpx;height: 58rpx;position: absolute;right: 0;top: 0;" src="https://qiniu-cdn.maeiyun.com/imgs/index/tuijian.png" mode=""></image>
					</view>
				</view>
			</view>
		</mescroll-body>
		<view v-if="type == 0" class="affirm-btn" @click="affirm">确定选择</view>
		<uni-popup ref="technicianPopup">
			<view class="technician-popupontent">
				<view class="technician-popup-list">
						<view class="item-popup-technician">
							<view class="swiper-item-img">
								<image :src="itemtechnician.work_clothes_image" mode="aspectFill"></image>
							</view>
							<view class="qualification-list">
								<view class="qualification-item">
									<image :src="$util.imgurl('/imgs/massage/vip-icoc.png')" mode=""></image>
									<view>实名认证</view>
								</view>
								<view class="qualification-item">
									<image :src="$util.imgurl('/imgs/massage/vip-icoc.png')" mode=""></image>
									<view>按摩师证</view>
								</view>
								<view class="qualification-item">
									<image :src="$util.imgurl('/imgs/massage/vip-icoc.png')" mode=""></image>
									<view>头像验真</view>
								</view>
								<view class="look-detail" @click="viewQualification(itemtechnician.id)">
									查看
									<uni-icons type="right" color="#6E4E37" size="14"></uni-icons>
								</view>
							</view>
							<view class="technician-popup-info">
								<view class="technician-info-lines">
									<view class="name">{{itemtechnician.technician_nickname || itemtechnician.real_name}}</view>
									<view class="age">{{itemtechnician.age}}</view>
									<view @click="openPopup(itemtechnician)" class="shop-lines" style="display: flex;align-items: center;font-size: 24rpx;margin-left: 20rpx;">
										<uni-icons custom-prefix="iconfont" type="icon-dianpu1" color="#333" size="12"></uni-icons>
										<view style="margin-left: 10rpx;">{{itemtechnician.store_name}}</view>
										<uni-icons type="forward" color="#333" size="12"></uni-icons>
									</view>
									<view class="right-address">
										<image :src="$util.imgurl('/imgs/massage/address.png')" mode=""></image>
										<view>{{(itemtechnician.juli/1000).toFixed(2)}}km</view>
									</view>
								</view>
								<view class="technician-datum-list-content">
									<view class="technician-datum-list">
										<view class="item-datum">
											<view class="titles">籍贯</view>
											<view class="desc">{{itemtechnician.city}}</view>
										</view>
										<view class="item-datum">
											<view class="titles">星座</view>
											<view class="desc">{{itemtechnician.constellation}}</view>
										</view>
										<view class="item-datum">
											<view class="titles">性别</view>
											<view class="desc">{{itemtechnician.gender == 1?'男':'女'}}</view>
										</view>
										<view class="item-datum">
											<view class="titles">民族</view>
											<view class="desc">{{itemtechnician.nation}}</view>
										</view>
										<view class="item-datum">
											<view class="titles">工龄</view>
											<view class="desc">{{itemtechnician.experience}}年</view>
										</view>
										<view class="item-datum">
											<view class="titles">手法</view>
											<view class="desc">{{itemtechnician.star}}星</view>
										</view>
										<view class="item-datum">
											<view class="titles">身高</view>
											<view class="desc">{{itemtechnician.height}}cm</view>
										</view>
										<view class="item-datum">
											<view class="titles">体重</view>
											<view class="desc">{{itemtechnician.weight}}kg</view>
										</view>
									</view>
									<view class="brief-introduction">
										正规绿色服务!擅长中式推拿、精油SPA、美容理疗，有
										按摩师证，手法专业，期待您的关注和预约~
									</view>
								</view>
								<view class="bottom-lines">
									<view>评论 {{itemtechnician.opinion}}</view>
									
									<view style="margin-left: 30rpx;">好评 {{((itemtechnician.high_opinion/itemtechnician.opinion || 0)*100).toFixed(2)}}%</view>
									<view class="btns">
										<image v-if="itemtechnician.is_collect == 0" @click="collect(itemtechnician.id,1,itemtechnician)"
											src="https://qiniu-cdn.maeiyun.com/imgs/massage/attion.png" mode="widthFix"></image>
										<image v-else @click="collect(itemtechnician.id,1,itemtechnician)"
											src="https://qiniu-cdn.maeiyun.com/imgs/massage/select-attion.png" mode="widthFix">
										</image>
										<image @click="choosePopupTen(itemtechnician)"
											style="margin-left: 10rpx;"
											src="https://qiniu-cdn.maeiyun.com/imgs/massage/choose.png" mode="widthFix"></image>
									</view>
								</view>
							</view>
						<!-- </swiper-item> -->
					</view> 
				</view>
				<!-- </scroll-view> -->
			</view>
		</uni-popup>
		
		<store ref="popup"></store>
	</view>
</template>

<script>
	import publicData from '@/otherpages/massage/public.js'
	import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
	import store from '@/components/store/store.vue'
	import { mapState } from 'vuex'//引入mapState
	export default {
		computed: {
			  ...mapState({'userLocation':'userLocation'}),
		},
		components:{
			store
		},
		mixins: [MescrollMixin],
		data() {
			return {
				current: 0,
				datsList: [],
				id: 0, //服务id
				day: 0, //日期类型
				timeList: [], //时间列表 
				time: "",
				massageResultData: {}, //筛选条件返回值
				massageList: [],
				currrentItem: {},
				type: 0, //选择技师 1 技师列表
				iszhan: false,
				lat: "",
				lng: "",
				page: 1,
				down: {
					auto: false
				},
				up:{
					textNoMore:"-- END --"
				},
				alldate:"今天",
				bgcolor:'rgba(0,0,0,0)',
				itemtechnician:{},
				isShowPopup:false,
				lat:"",
				lng:''
			}
		},
		onLoad(option) {
			this.type = option.type ? option.type : 0
			this.id = option.id ? option.id : 0
			this.lat = option.lat? option.lat:''
			this.lng = option.lng? option.lng:''
			for (var i = 0; i < 5; i++) {
				this.datsList[i] = {}
				this.datsList[i].time = this.getDate(i).day
				this.datsList[i].day = i
				this.datsList[i].week = this.getWeek(this.getDate(i).year)
			}
			this.day = publicData.selectiveTime.day
			this.time = publicData.selectiveTime.time
			this.alldate = publicData.selectiveTime.alldate
			this.getTime(0)
			this.massageList = []
		},
		onBackPress(option) {
			if(this.isShowPopup){
				this.$refs.technicianPopup.close()
				this.isShowPopup = false
				return true
			}else{
				return false
			}
			
		},
		onPageScroll(e) {
			// if(e.scrollTop >10){
			// 	this.bgcolor = '#F5F7F8'
			// }else{
			// 	this.bgcolor = 'rgba(0,0,0,0)'
			// }
		},
		methods: {
			openPopup(e){
				this.$refs.popup.open(e.store_id)
			},
			showPopup(item, index) { //查看技师
				this.itemtechnician = item
				this.isShowPopup = true
				this.$refs.technicianPopup.open('center')
			},
			viewQualification(id) { //查看资质
				uni.navigateTo({
					url: '/otherpages/massage/realnameAuth?id='+id
				})
			},
			collect(id, type, item) { //技师、服务收藏
				var that = this
				this.request.httpTokenRequest({
					url: "service/collect",
					method: "POST"
				}, {
					id: id,
					type: type, //1=技师，2=服务
				}).then(function(data) {
					if (data.code == 0) {
						that.itemtechnician.is_collect = (that.itemtechnician.is_collect == 1 ? 0 : 1)
						that.$util.msg(data.msg)
					} else {
			
					}
				})
			},
			choosePopupTen(item) { //弹窗选择技师
				// this.selectiveTechnician = item
				// this.getTechnician(1)
				if (this.type == 0) {
					this.current = item.id
					this.currrentItem = item
					this.isShowPopup = false
					this.$refs.technicianPopup.close()
				}
			},
			back() {
				uni.navigateBack()
			},
			getDate(dates) {
				var dd = new Date();
				var n = dates || 0;
				dd.setDate(dd.getDate() + n);
				var y = dd.getFullYear();
				var m = dd.getMonth() + 1;
				var d = dd.getDate();
				m = m < 10 ? "0" + m : m;
				d = d < 10 ? "0" + d : d;
				var year = y + '-' + m + "-" + d;
				var day = m + "-" + d;
				var obj = {
					day: day,
					year: year
				}
				return obj;
			},
			getWeek(day) {
				var week = new Date(day)
				var day = week.getDay()
				var weekdata = ''
				// console.log("----day---", day)
				switch (day) {
					case 0:
						weekdata = "星期日";
						break;
					case 1:
						weekdata = "星期一";
						break;
					case 2:
						weekdata = "星期二";
						break;
					case 3:
						weekdata = "星期三";
						break;
					case 4:
						weekdata = "星期四";
						break;
					case 5:
						weekdata = "星期五";
						break;
					case 6:
						weekdata = "星期六";
						break;
				}
				return weekdata
			},
			screen() {
				this.$refs.shaixuanPopup.open()
			},
			sliderchang(data) {
				this.screening.slidernum = data
			},
			chooseDay(item) {
				this.page = 1
				this.day = item.day
				this.alldate = item.time
				this.getTime(1)
				this.downCallback()
			},
			chooseTime(item) {
				this.page = 1
				this.time = item.time
				this.massageList = []
				this.downCallback()
			},
			chooseTechnician(item) {
				if (this.type == 0) {
					this.current = item.id
					this.currrentItem = item
					publicData.selectiveTechnician.id = item.id
					this.getTime()
				} else {
					uni.navigateTo({
						url: '/otherpages/technician/technician?id=' + item.id
					})
				}
			},
			affirm() {
				let data = {
					day: this.day,
					time: this.time,
					week: this.datsList[this.day].week,
					alldate: this.alldate
				}
				let pages = getCurrentPages();
				let prevPage = pages[pages.length - 2];
				// #ifdef APP
				prevPage.$vm.showtime = false
				prevPage.$vm.selectiveTime = data
				prevPage.$vm.selectiveTechnician = this.currrentItem
				// #endif
				// #ifndef APP
				prevPage.showtime = false
				prevPage.selectiveTime = data
				prevPage.selectiveTechnician = this.currrentItem
				// #endif
				publicData.selectiveTime = data
				publicData.selectiveTechnician = this.currrentItem

				uni.navigateBack({})
			},
			getTime(type) {
				var that = this
				this.request.httpTokenRequest({
					url: "service/getTechnicianWorkTime",
					method: "get"
				}, {
					technician_id: publicData.selectiveTechnician.id,
					day: this.day
				}).then(function(data) {
					if (data.code == 0) {
						that.timeList = data.data
						if (type == 1) {
							for (let i = 0; i < data.data.length; i++) {
							    if (data.data[i].status) { // 这里的 condition 为某种特定条件
									that.time = data.data[i].time
							        break; // 如果满足条件则跳出循环
							    }
							}
							
						}
						// that.$emit('optimalTime', data.data[0])
					} else {

					}
				})
			},
			massageResult(data) {
				this.massageResultData = data
				this.downCallback()
			},
			getLocation() {
				var that = this
				uni.showLoading({
					title: '加载中'
				});
				uni.getLocation({
					type: 'gcj02',
					altitude: true,
					geocode: true,
					success: function(res) {
						uni.hideLoading();
						that.lat = res.latitude
						that.lng = res.longitude
					}
				})
			},
			downCallback() {
				
				this.massageList = []
				this.mescroll.resetUpScroll()
			},
			upCallback(page){
				let that = this
				this.request.httpTokenRequest({
					url: "service/getTechnicianByService",
					method: "get"
				}, {
					distance: this.massageResultData.slidernum,
					gender: this.massageResultData.sex,
					category_id: this.category_id,
					key: this.massageResultData.elsename,
					age: this.massageResultData.age,
					sort: 0,
					day: this.day,
					time: this.time,
					service_id: this.id,
					lng: this.lng?this.lng:this.userLocation.longitude, //
					lat: this.lat?this.lat:this.userLocation.latitude,
					technician_id:publicData.selectiveTechnician.id?publicData.selectiveTechnician.id:0,
					page: page.num
				}).then(res => {
					if (res.code == 0) {
						res.data.data.map(item => {
							that.massageList.push(item)
						})
						if(that.massageList.length>0 && that.type == 0){
							that.current  = that.massageList[0].id
							that.currrentItem = that.massageList[0]
						}
						
						that.mescroll.endSuccess(that.massageList.length,that.massageList.length == res.data.total?false:true)
					} else {
						that.mescroll.endErr();
						return
					}
				}, error => {
					that.mescroll.endErr();
				})
			},

		}
	}
</script>

<style lang="scss" scoped>
	.index-page {
		// padding-top: var(--status-bar-height);
		// padding-bottom: 110rpx;
	}
	.sticky-tabs{
		z-index: 88;
		position: sticky;
		top: 0;
		background: #F5F7F8;
		// padding-top: (--status-bar-height);
	}
	// 使用mescroll-uni,则top为0
	// .mescroll-uni,
	// /deep/.mescroll-uni{
	// 	.sticky-tabs{
	// 		top: 0;
	// 	}
	// }
	.right-info {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		font-size: 26rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #000000;
		height: 30rpx;
		line-height: 30rpx;
		width: 128rpx;
		height: 40rpx;
		background: #FFFFFF;
		border-radius: 22rpx;
		opacity: 0.8;
		padding-bottom: 6rpx;
		box-sizing: border-box;

		image {
			width: 22rpx;
			height: 24rpx;
			margin-right: 12rpx;
		}

		view {
			// #ifdef H5
			transform: scale(0.8);
			// transform-origin:0 0; 
			//#endif
		}
	}

	//
	.time-content {

		// overflow: hidden;
		// overflow-x: scroll;
		.days-list {
			display: flex;
			align-items: center;
			justify-content: space-around;
			padding: 0 30rpx;
			.every-day {
				padding: 0 20rpx;
				flex: 0 0 auto;
				text-align: center;
				position: relative;
				.week {
					font-size: 28rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #08090A;
				}

				.date {
					font-size: 28rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #08090A;
				}

				.xia-icon {
					position: absolute;
					left: 42%;
					bottom: -24rpx;
					width: 23rpx;
					height: 31rpx;
					z-index: 1000;
				}

			}

			.every-day-select {
				color: #EF5233;

				.week {
					color: #EF5233;
				}

				.date {
					color: #EF5233;
				}
			}
		}
	}

	//
	.time-list {
		margin-top: 11rpx;
		padding: 0 30rpx;
		// height: 192rpx;
		border-radius: 20rpx;
		.out-time-list{
			background-color: #FFFFFF;
			height: 230rpx;
			border-radius: 10rpx;
			.shou-icon {
				width: 40rpx;
				height: 40rpx;
				color: #EF5233;
				font-size: 40rpx;
				z-index: 100;
				display: block;
				margin: 0 auto;
				line-height: 40rpx;
				text {
					width: 37rpx;
					height: 37rpx;
				}
			}
		}
		.time-inner-content {
			box-sizing: border-box;
			background-color: #FFFFFF;
			padding: 32rpx 30rpx 0 10rpx;
			display: grid;
			justify-content: space-between;
			grid-template-columns: repeat(auto-fill, 100rpx);
			grid-gap: 0 25rpx;
			position: relative;
			transition: height 1s ease-in-out;
			overflow: hidden;
			height: 180rpx;
			border-radius: 10rpx;
			.time {
				width: 106rpx;
				flex: 0 0 106rpx;
				height: 60rpx;
				border-radius: 29rpx;
				border: 1rpx solid #D7D7D7;
				font-size: 24rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #545454;
				line-height: 60rpx;
				text-align: center;
				margin: 0 8rpx;
				margin-bottom: 20rpx;
				position: relative;

				.night-text {
					width: 43rpx;
					height: 23rpx;
					background: #545454;
					border-radius: 11rpx;
					font-size: 16rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #FFD359;
					text-align: center;
					position: absolute;
					top: -10rpx;
					right: 0;
					line-height: 23rpx;
				}
			}
			.time-select {
				border: 1rpx solid #EF5233;
				color: #FFF;
				background: #EF5233;
			}
			.time-nochoose {
				border: 1rpx solid #D7D7D7;
				color: #fff;
				background-color: #D7D7D7;
			}
		}
		.expanded {
			height: auto !important;
		}
	}
	//
	.technician-list {
		margin-top: 15rpx;
		padding: 0 30rpx;
		padding-bottom: 100rpx;
	}

	.selectstyle {
		border-color: #EF5233 !important;

	}

	.every-technician-info {
		height: 280rpx;
		background-color: #fff;
		border-radius: 10rpx;
		padding: 0 31rpx;
		position: relative;
		margin-top: 15rpx;
		border: 2rpx solid #fff;
		position: relative;
		overflow: hidden;
		
		.left-show {
			position: absolute;
			left: 24rpx;
			top: 30rpx;

			.technician-img {
				width: 160rpx;
				height: 200rpx;
				position: relative;

				.header-img {
					width: 160rpx;
					height: 200rpx;
				}

				.fangda-icon {
					width: 30rpx;
					height: 30rpx;
					position: absolute;
					top: 10rpx;
					right: 10rpx;
				}

			}

			.choose-style {
				width: 118rpx;
				height: 30rpx;
				margin: 0 auto;
				margin-top: 30rpx;

				.no-choose {
					width: 115rpx;
					height: 30rpx;
					background: url('../../static/jishi/nochoose.png')no-repeat;
					background-size: 100% 100%;
					font-size: 20rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #FFFFFF;
					padding-left: 17rpx;
					line-height: 30rpx;
				}

				.choose {
					width: 115rpx;
					height: 30rpx;
					background: url('../../static/jishi/choose.png')no-repeat;
					background-size: 100% 100%;
					font-size: 20rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #FFFFFF;
					padding-left: 17rpx;
					line-height: 30rpx;
				}
			}
		}
		.right-fixed-img{
			position: absolute;
			right: 0;
			top:0;
			width: 128rpx !important;
			height: 128rpx !important;
		}
		.right-show {
			position: absolute;
			left: 221rpx;
			top: 28rpx;
			right: 24rpx;
			.fixed-loc {
				position: absolute;
				right: 0;
				display: flex;
				align-items: baseline;
				height: 30rpx;
				background: #F3F3F3;
				border-radius: 150rpx;
				padding: 0 14rpx;
				justify-content: center;
				align-items: center;
				line-height: 30rpx;
				view {
					font-size: $uni-font-size-sm;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #0F0807;
				}

				image {
					width: 14rpx;
					height: 18rpx;
					margin-right: 6rpx;
				}
			}

			.username {
				font-size: 30rpx;
				font-weight: 400;
				color: #0F0807;

				text {
					font-size: $uni-font-size-sm;
				}
			}

			.start-nums {
				display: flex;
				align-items: center;

				.start-show {
					margin-right: 42rpx;

					image {
						width: 19rpx;
						height: 18rpx;
					}
				}

				.pingjia-nums {
					display: flex;
					align-items: center;
					margin-top: 10rpx;
					text {
						font-size: $uni-font-size-base;
						font-family: PingFangSC, PingFang SC;
						font-weight: 400;
						color: #888889;
						margin-right: 10rpx;
					}
				}
			}
			.shop-lines{
				font-size: $uni-font-size-base;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #888889;
				margin-top: 10rpx;
			}

			//

			.technician-datum-list {
				display: flex;
				align-items: center;
				flex-wrap: wrap;
				margin-top: 16rpx;
				flex-grow: 1;
				justify-content: space-between;
				
				.item-datum {
					display: flex;
					align-items: center;
					flex-basis: 33%;
					margin-bottom: 20rpx;
					flex: 0 0 33%;
					.titles {
						font-size: $uni-font-size-base;
						font-weight: 400;
						color: #888889;
						margin-right: 8rpx;
						flex: 0 0 auto;
				
					}
					.desc {
						font-size: $uni-font-size-base;
						font-weight: 400;
						color: #0F0807;
						max-width: 100rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
						flex: 0 0 auto;
					}
				}
				.item-datum:last-child {
				  margin-right: auto;
				}
			}

			.brief-introduction {
				font-size: 22rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #0F0807;
				// margin-top: 20rpx;
				overflow: hidden;
				display: -webkit-box;//设置块元素为伸缩布局
				-webkit-box-orient: vertical;//设置伸缩项的布局方向
				-webkit-line-clamp: 2;//设置文本行数

			}
		}
	}

	//筛选弹窗
	.popup-content {
		width: 511rpx;

		.screening-condition {
			padding: 33rpx;
			border-bottom: 30rpx solid #D8D8D8;

			.screening-title {
				font-size: 28rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #000000;
				line-height: 40rpx;
			}

			.slider-content {
				margin-top: 55rpx;
				padding-bottom: 30rpx;
			}

			.sex-content {
				margin-top: 30rpx;

				.all-ok {
					width: 138rpx;
					height: 60rpx;
					border-radius: 30rpx;
					border: 1rpx solid #D7D7D7;
					font-size: 24rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #000000;
					text-align: center;
					line-height: 60rpx;
				}

				.all-ok-select {
					background: rgba(239, 82, 51, 0.1);
					border-radius: 30rpx;
					border: 1rpx solid #EF5233;
					color: #EF5233;
				}

				.else-sex {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-top: 50rpx;

					.sex-box {
						width: 210rpx;
						height: 60rpx;
						border-radius: 30rpx;
						border: 1rpx solid #D7D7D7;
						display: flex;
						align-items: center;
						text-align: right;
						position: relative;

						view {
							width: 100%;
							font-size: 24rpx;
							font-family: PingFangSC, PingFang SC;
							font-weight: 400;
							color: #000000;
							text-align: right;
							padding-right: 30rpx;
						}

						image {
							width: 89rpx;
							height: 89rpx;
							position: absolute;
							bottom: 0;
							left: 16rpx;
						}
					}

					.sex-box-select {
						background: rgba(239, 82, 51, 0.1);
						border-radius: 30rpx;
						border: 1rpx solid #EF5233;

						view {
							color: #EF5233;
						}
					}
				}
			}

			//
			.age-fillin {
				display: flex;
				align-items: center;
				margin-top: 30rpx;

				.lines {
					width: 18rpx;
					height: 1rpx;
					background-color: #979797;
					margin: 0 8rpx;
				}

				input {
					width: 210rpx;
					height: 60rpx;
					background: #F3F3F3;
					border-radius: 30rpx;
					font-size: 24rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #000000;
					text-align: center;
				}
			}

			.age-list {
				display: flex;
				align-items: center;
				justify-content: space-around;
				margin-top: 30rpx;

				view {
					width: 138rpx;
					height: 60rpx;
					border-radius: 30rpx;
					border: 1rpx solid #D7D7D7;
					font-size: 24rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #000000;
					line-height: 60rpx;
					text-align: center;
				}
			}

			.technician-name {
				width: 452rpx;
				height: 60rpx;
				background: #F3F3F3;
				border-radius: 30rpx;
				font-size: 24rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #000000;
				text-align: center;
				margin-top: 30rpx;
			}
		}

		//
		.choose-btns {
			background: url('../../static/jishi/btn-bg.png')no-repeat;
			background-size: 100% 100%;
			width: 448rpx;
			height: 76rpx;
			margin: 0 auto;
			display: flex;
			align-items: center;
			justify-content: space-between;
			position: absolute;
			bottom: 90rpx;
			left: 33rpx;

			view {
				width: 50%;
				text-align: center;
			}

			.chongzhi {
				font-size: 30rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #000000;
			}

			.confirm {
				font-size: 30rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
			}
		}
	}

	.affirm-btn {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
		height: 80rpx;
		background-color: #EF5233;
		color: #fff;
		text-align: center;
		line-height: 80rpx;
	}
	//
	//弹窗样式
	.technician-popupontent {
		width: 690rpx;
		border-radius: 10rpx;
		.icon-lines {
			display: flex;
			align-items: center;
			justify-content: space-between;
			background: rgba(0, 0, 0, 0);
			margin-bottom: 30rpx;
	
			.back-icon {
				width: 13rpx;
				height: 13rpx;
			}
	
			.shaixuna-icon {
				display: flex;
				align-items: center;
				font-size: 26rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
				width: 128rpx;
				height: 50rpx;
				background: rgba(0, 0, 0, 0.5);
				border-radius: 25rpx;
				justify-content: center;
	
				image {
					width: 22rpx;
					height: 24rpx;
				}
			}
		}
	
		//
		.item-popup-technician {
			width: 96% !important;
			margin: 0 auto;
			background-color: #fff;
			border-radius: 30rpx;
			overflow: hidden;
			padding: 0;
			box-sizing: border-box;
			margin-bottom: 20rpx;
			.swiper-item-img {
				width: 100%;
				height: 600rpx;
				image {
					width: 100%;
					height: 100%;
				}
			}
		}
	
		//
		.qualification-list {
			display: flex;
			align-items: center;
			justify-content: space-around;
			// padding-bottom: 20rpx;
			background-color: #FEF5E0;
			.qualification-item {
				image {
					width: 24rpx;
					height: 22rpx;
					margin-right: 11rpx;
				}
	
				display: flex;
				align-items: center;
				font-size: 22rpx;
				font-family: PingFangSC,
				PingFang SC;
				font-weight: 400;
				color: #6E4E37;
				height: 70rpx;
				line-height: 70rpx;
			}
			.look-detail{
				font-size: 22rpx;
				color: #6E4E37;
				
			}
	
		}
		//
		.technician-popup-info {
			padding: 30rpx;
			border-top-left-radius: 20rpx;
			border-top-right-radius: 20rpx;
			margin-top: -10rpx;
			background-color: #fff;
			height: 433rpx;
			.technician-info-lines {
				display: flex;
				align-items: center;
				padding: 12rpx 0;
				.name {
					font-size: 30rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					color: #07080A;
				}
	
				.age {
					font-size: 26rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #07080A;
					margin-left: 20rpx;
				}
	
				.right-address {
					display: flex;
					align-items: center;
					margin-left: auto;
					font-size: 26rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #757575;
	
					image {
						width: 17rpx;
						height: 20rpx;
						margin-right: 10rpx;
					}
				}
			}
		}
	
		.technician-datum-list-content {
			background-color: #F5F6F7;
			padding: 20rpx 30rpx;
			border-radius: 10rpx;
			height: 238rpx;
			box-sizing: border-box;
		}
		.technician-datum-list {
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			margin-top: 16rpx;
			.item-datum {
				display: flex;
				align-items: center;
				flex-basis: 33.3333%;
				margin-bottom: 10rpx;
				.titles {
					font-size: 22rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #888889;
					margin-right: 8rpx;
				}
	
				.desc {
					font-size: 22rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #0F0807;
					max-width: 100rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}
		}
		.brief-introduction {
			font-size: 22rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #0F0807;
			margin-top: 20rpx;
			background-color: #F5F6F7;
			display: -webkit-box;
			-webkit-line-clamp: 2; /* 设置显示的行数 */
			-webkit-box-orient: vertical;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		//
		.bottom-lines {
			display: flex;
			align-items: center;
			font-size: 24rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #8B8C8D;
			margin-top: 20rpx;
			justify-content: space-between;
	
			.btns {
				margin-left: auto;
			}
	
			image {
				width: 140rpx;
				// height: 59rpx;
				// margin-left: 14rpx;
			}
		}
	}
</style>